<div class="dux-page-header uk-clearfix">
    <div class="page-title">
        <a class="uk-button uk-button-primary" href="{url('index')}"> 分类列表</a>
    </div>
    <div class="page-action">
        <a class="uk-button uk-button-danger" href="javascript:location.reload();"><i class="fa fa-refresh"></i></a>
    </div>
</div>

<div class="uk-margin-top">
    <div class="uk-card uk-card-default uk-card-small dux-panel">
        <div class="uk-card-header">{$assignName}分类</div>
        <div class="uk-card-body">
            <form class="dux-form uk-form   uk-form-horizontal " data-dux="form-bind" method="post">
                <fieldset>
                    <div class="uk-form-group">
                        <label class=" uk-form-label">帮助分类</label>
                        <div class="uk-form-controls">
                            <select data-dux="form-select" name="class_id" id="class_id" required>
                                <!--loop{(array)$classList as $vo}-->
                                <option <!--if{$vo.class_id == $classId}--> selected <!--{/if}-->value="{$vo.class_id}">{$vo.name}</option>
                                <!--{/loop}-->
                            </select>
                        </div>
                    </div>
                    <div class="uk-form-group">
                        <label class=" uk-form-label">内容标题</label>
                        <div class="uk-form-controls">
                            <input type="text" name="title" value="{$info.title}" placeholder="请输入内容标题" required>
                        </div>
                    </div>

                    <div class="uk-form-group">
                        <label class=" uk-form-label">正文内容</label>
                        <div class="uk-form-controls">
                            <textarea data-dux="form-editor" name="content"
                                      style="height: 400px">{$info.content}</textarea>
                        </div>
                    </div>

                    <div class="uk-form-group">
                        <label class=" uk-form-label">内容关键词</label>
                        <div class="uk-form-controls">
                            <input type="text" name="keyword" value="{$info.keyword}" placeholder="可选,请输入关键词">
                        </div>
                    </div>
                    <div class="uk-form-group">
                        <label class=" uk-form-label">内容描述</label>
                        <div class="uk-form-controls">
                            <textarea name="description" placeholder="可选,内容描述信息">{$info.description}</textarea>
                        </div>
                    </div>

                    <div class="uk-form-group">
                        <label class=" uk-form-label">内容顺序</label>
                        <div class="uk-form-controls">
                            <input type="number" name="sort" value="{$info.sort ? $info.sort : 0}" placeholder="请输入顺序" >
                        </div>
                    </div>

                    <div class="uk-form-group">
                        <label class=" uk-form-label">内容状态</label>
                        <div class="uk-form-controls uk-form-controls-text">
                            <?php $info['status'] = isset($info['status']) ? $info['status'] : 1;  ?><div class="uk-grid">
                            <label>
                                <!--if{$info['status']}-->
                                <input name="status" value="1" checked="checked" type="radio">
                                <!--{else}-->
                                <input name="status" value="1" type="radio">
                                <!--{/if}-->
                                正常
                            </label>
                            <label>
                                <!--if{!$info['status']}-->
                                <input name="status" checked="checked" value="0" type="radio">
                                <!--{else}-->
                                <input name="status" value="0" type="radio">
                                <!--{/if}-->
                                隐藏
                            </label>
                        </div></div>
                    </div>


                    <div class="uk-form-group">
                        <div class="uk-form-controls">
                            <input type="hidden" name="help_id" value="{$info.help_id}">
                            <button class="uk-button uk-button-primary" type="submit" disabled>保存</button>
                        </div>
                    </div>

                </fieldset>
            </form>
        </div>
    </div>
</div>